package presstrack
{
	import org.presstrack.service.*;
	
	[RemoteClass(alias="presstrack.ReportGeneralClass")]
	
	[Bindable]
	public class ReportGeneralClass
	{
		public var iNumOfOrder		:int;
		public var dSumOfOrder		:Number;
		public var dSumOfPayment	:Number;
		public var dSumOfDebt		:Number;
			
		public var arManagerBySaleAndPayment	:Array;
		public var arCustomerByPaymentAndDebt	:Array;
		public var arPressTaskByCost			:Array;
		public var arPostpressTaskByCost		:Array;
		
		public function ReportGeneralClass(report:ReportGeneralClass = null)
		{
			if (report != null)
			{
				copyFrom(report);
			}			
		}
		
		private function copyFrom(report:ReportGeneralClass):void
		{
			iNumOfOrder		= report.iNumOfOrder;
			dSumOfOrder		= report.dSumOfOrder;
			dSumOfPayment	= report.dSumOfPayment;
			dSumOfDebt 		= report.dSumOfDebt;			
			arManagerBySaleAndPayment 	= report.arManagerBySaleAndPayment;
			arCustomerByPaymentAndDebt	= report.arCustomerByPaymentAndDebt;
			arPressTaskByCost			= report.arPressTaskByCost;
			arPostpressTaskByCost		= report.arPostpressTaskByCost;
		}
	}
}